Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • rn4j0r 15 posts 85 karma points
    Jun 17, 2014 @ 20:28
    rn4j0r
    0

    How to edit [uBlogsy] default blog post image size

    I tried looking in Templates > uBlogsy Base > [uBlogsy] [Base] Blog > [uBlogsy] Post but not sure if I am looking in the right location(s).

    Any help would be appreciated.

    I want to make the default image size smaller.

    Thanks in advance! :)

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Jun 17, 2014 @ 21:58
    Dennis Aaen
    100

    Hi rn4j0r,

    I have just tried to figure out where the dimensions on the picture comes from. And I have found out how you can change it.

    You need to have the site open in Webmatrix or Visual Studio, or an other editor that can give you the filestructure. Umbraco don´t gives you folder under need the Views folder.

    But if you open up your site in e.g Webmatrix you can find some folder under the views folders, these folder holds the files for uBlogsy. If you go the folder shared there are a file called uBlogsyShowImage.cshtml.

    I have made a screenshot so it's easier for you to see where to find the file.

     

    In the file you see these two lines of code.

     if (!string.IsNullOrEmpty(useMap))
            {
            <img src="@url" alt="@title" class="@cssClass" usemap="@useMap" style="@style"/>
            }
            else
            {
            <img src="@url" alt="@title" class="@cssClass" style="@style"/>
            }

    If you remove the style attribut, you will get the image in full with, what you can do is write a width, like this e.g

     if (!string.IsNullOrEmpty(useMap))
            {
            <img src="@url" alt="@title" class="@cssClass" usemap="@useMap" style="width: 200px;"/>
            }
            else
            {
            <img src="@url" alt="@title" class="@cssClass" style="width:200px;"/>
            }

    I hope this helps, and can be a solution for you.

    /Dennis

  • rn4j0r 15 posts 85 karma points
    Jun 17, 2014 @ 22:21
    rn4j0r
    0

    That was perfect and exactly what I was looking for. I would have never found it without your help!

    Thanks Dennis :)

    Looks way nicer!
     

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Jun 17, 2014 @ 22:30
    Dennis Aaen
    0

    You´re welcome, glad that I could help you.

    You can make this post solve by hit the little green tick for the post that gives you the correct answer to your question.

    But as I said glad that I could help you.

    /Dennis

  • rn4j0r 15 posts 85 karma points
    Jun 17, 2014 @ 22:34
    rn4j0r
    0

    Done and done ;]

Please Sign in or register to post replies

Write your reply to:

Draft